home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / util / simulare.sit / Simula 4.07 Reference / card_31621.txt < prev    next >
Text File  |  1989-05-02  |  3KB  |  157 lines

  1. -- card: 31621 from stack: in.07 Reference
  2. -- bmap block id: 32718
  3. -- flags: 0000
  4. -- background id: 13647
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0002
  11. -- rect: left=294 top=173 right=192 bottom=484
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Text value
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 00
  24. -- high flags: 0002
  25. -- rect: left=296 top=227 right=246 bottom=486
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 3
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Text value
  34.  
  35.  
  36. -- part 3 (field)
  37. -- low flags: 00
  38. -- high flags: 0002
  39. -- rect: left=142 top=214 right=233 bottom=291
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 0
  43. -- font id: 3
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: Text value
  48.  
  49.  
  50. -- part 4 (field)
  51. -- low flags: 00
  52. -- high flags: 0002
  53. -- rect: left=142 top=190 right=209 bottom=291
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 0
  57. -- font id: 3
  58. -- text size: 12
  59. -- style flags: 0
  60. -- line height: 16
  61. -- part name: Text value
  62.  
  63.  
  64. -- part 5 (field)
  65. -- low flags: 00
  66. -- high flags: 0002
  67. -- rect: left=141 top=252 right=271 bottom=290
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 0
  71. -- font id: 3
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: Text value
  76.  
  77.  
  78. -- part 6 (button)
  79. -- low flags: 00
  80. -- high flags: A004
  81. -- rect: left=354 top=291 right=313 bottom=438
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 1
  85. -- font id: 0
  86. -- text size: 12
  87. -- style flags: 0
  88. -- line height: 16
  89. -- part name: Continue
  90. ----- HyperTalk script -----
  91. on mouseUp
  92.   go to card id 32446
  93. end mouseUp
  94.  
  95.  
  96.  
  97.  
  98. -- part 7 (field)
  99. -- low flags: 00
  100. -- high flags: 0002
  101. -- rect: left=13 top=181 right=296 bottom=130
  102. -- title width / last selected line: 0
  103. -- icon id / first selected line: 0 / 0
  104. -- text alignment: 0
  105. -- font id: 3
  106. -- text size: 9
  107. -- style flags: 0
  108. -- line height: 12
  109. -- part name: 
  110.  
  111.  
  112. -- part contents for background part 2
  113. ----- text -----
  114. Types - Text variables
  115.  
  116. -- part contents for background part 1
  117. ----- text -----
  118. Text variables are declared variables. Text variables can be compared and assigned to each other but also used to access the referenced text value.
  119.  
  120.     Text reference expressions
  121. The denote operator ':-' is used to assign text variables. The operators '==' and '=/='  are used to check for reference equality. Text variables are reference equal if they reference the same text value:
  122.  
  123.  
  124.  
  125.  
  126.  
  127. -- part contents for card part 1
  128. ----- text -----
  129. "ABCDEFGH"      L=8, C=False
  130.  
  131. -- part contents for card part 2
  132. ----- text -----
  133. "ABCDEFGH"      L=8, C=False
  134.  
  135. -- part contents for card part 4
  136. ----- text -----
  137. T1:F1:8, Pos=1,L=8
  138.  
  139. -- part contents for card part 3
  140. ----- text -----
  141. T2:F1:8, Pos=1,L=8
  142.  
  143. -- part contents for card part 5
  144. ----- text -----
  145. S:  F1:8, Pos=1,L=8
  146.  
  147. -- part contents for card part 7
  148. ----- text -----
  149. Text t1,t2,s;
  150.  
  151. t1:-copy("ABCDEFGH");
  152. t2:-t1;
  153. s:-copy(t1);
  154. T1 == T2 is true 
  155. T1 =/= S is true 
  156.  
  157. (but T1=S  is true)